using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace kongjian63
{
    [Designer(typeof(TongJi_EMS._TJ_Basic.TJ_BasicControlDesigner))]
    public partial class shuanghuan_yibiao : TongJi_EMS._TJ_Basic.TJ_BasicControl
    {
        private float x;
        private float y;
        public shuanghuan_yibiao()
        {
            InitializeComponent();
        }

        private void shuanghuan_yibiao_Load(object sender, EventArgs e)
        {
            this.shuanghuan_yibiao_Resize(sender, e);
        }

        private void shuanghuan_yibiao_Paint(object sender, PaintEventArgs e)
        {
            Pen pen = new Pen(Color.Red, 1f);
            e.Graphics.DrawEllipse(pen, this.x * 0.5f, this.y * 0.5f, this.x, this.y);
            e.Graphics.DrawEllipse(pen, (float)(this.x * 0.6f), (float)(this.y * 0.6f), (float)(this.x * 0.8f), (float)(this.y * 0.8f));
            e.Graphics.DrawLine(pen, this.x, 0f, this.x, this.y * 0.5f);
            e.Graphics.DrawLine(pen, this.x, this.y * 1.5f, this.x, this.y * 2f);
        }

        private void shuanghuan_yibiao_Resize(object sender, EventArgs e)
        {
            this.x = base.Width / 2;
            this.y = base.Height / 2;
            //this.Refresh();
        }
    }
}